<?php get_header(); ?>
<div id="content-container">

<div class="content">
	<?php include (TEMPLATEPATH . '/ads.php'); ?>
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

	<div class="post">

	<div class="title">
		<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
		
		<div class="info">
			<span class="day"><?php the_time('d'); ?></span>
			<span class="month"><?php the_time('M'); ?></span>
			<span class="folder"><?php the_category(', ') ?> </span>
			<span class="comment"><a href="<?php the_permalink() ?>#comments"> <?php comments_number('No comment','1 comment','% comments'); ?></a> </span>
		</div>
		
	</div>

	<div class="entry">
		<?php the_content('&raquo; Read the rest of the entry.. ') ?>
		<?php trackback_rdf(); ?>
	</div>

	<?php if (function_exists('is_tag')) { ?>
		<div class="info">
		<span class="tag"><?php if (get_the_tags()) the_tags(); ?> </span>
		</div>
	<?php } ?>
	
	<div class="floatleft"><?php previous_post_link('&laquo; %link') ?></div>
	<div class="floatright"><?php next_post_link(' %link &raquo;') ?></div>
	</div>

	<?php endwhile; ?>
	<?php comments_template(); ?>
	<?php else: ?>
	<?php include (TEMPLATEPATH . '/notfound.php'); ?>
	<?php endif; ?>
</div>
<div class="clear"></div>
</div>
	<div id="sidebarwrap">
		<p class="postinfo">
		<span class="author">Posted by <?php the_author_posts_link(); ?>.</span><br />
		<span class="calendar"><?php the_time('d F Y  ') ?> at <?php the_time() ?></span><br />
		<span class="comment"> <?php comments_number('No comment','1 comment','% comments'); ?></span><br />
		<span class="folder"><?php the_category(', ') ?> </span><br />			
		<span class="rss2"><?php comments_rss_link('comments feed'); ?>.  </span><br />
		<?php trackback_rdf(); ?></p>

		<div id="asides">
			<?php include (TEMPLATEPATH . '/asides.php'); ?>
		</div>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
		<?php include (TEMPLATEPATH . '/sidebar3.php'); ?>
		<?php get_sidebar(); ?>
		<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
	</div>

</div>
<div class="clear"> </div>

<?php get_footer(); ?>
